<template>
  <c-tags
    class="quotation-status"
    :data="[
      {
        label: $getEnum(quotationDict.detailStatus, flag),
        color:
          flag === quotationDict.detailStatus.onsale.value // 在售中
            ? 'green'
            : flag === quotationDict.detailStatus.sellout.value // 已售完
            ? ''
            : 'blue'
      }
    ]"
  ></c-tags>
</template>

<script>
import quotationDict from "@/dict/quotation";

export default {
  props: {
    flag: {
      type: Number
    }
  },
  data() {
    return {
      quotationDict
    };
  }
};
</script>
